package com.zuul.retry;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 重试机制测试
 * */
@RestController
public class RetryableController {

    @RequestMapping(value = "/hello")
    public String index() {
        System.out.println("request is coming...");
        try {
            Thread.sleep(100000);
        } catch (InterruptedException e) {
            System.out.println("线程被打断... " + e.getMessage());
        }
        return "hello spring ...";
    }

}
